package model;

/**
 * Track
 * 
 * @author orlin
 */
public class Track {

	private Album album;
	private String position;
	private String title;
	private String duration;

	public Track() {
	}

	public Track(Album album, String position, String title, String duration) {
		super();
		this.album = album;
		this.position = position;
		this.title = title;
		this.duration = duration;
	}

	public Album getAlbum() {
		return album;
	}
	public void setAlbum(Album album) {
		this.album = album;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDuration() {
		return duration;
	}
	public void setDuration(String duration) {
		this.duration = duration;
	}

	@Override
	public String toString() {
		StringBuffer line = new StringBuffer();
		line.append("Track [album:");
//		line.append(album);
		line.append(", position:");
		line.append(position);
		line.append(", duration:");
		line.append(duration);
		line.append(", title:");
		line.append(title);
		line.append("]");
		return line.toString();
	}
}
